package com.example.librarymanagement.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author fgba
 * @since 2021-05-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Role implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    private Integer id;

    private String name;

    private String code;

    /**
     * 备注
     */
    private String remark;

    private LocalDateTime created;

    private LocalDateTime updated;

    private Integer state;

    @TableField(exist = false)
    private List<Integer> menuIds;
}
